package com.ykq.controller;

import com.ykq.service.RoleService;
import com.ykq.util.CommonResult;
import com.ykq.util.TableLayUi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: qy145-key
 * @description:
 * @author: 闫克起2
 * @create: 2021-12-17 08:51
 **/
@RestController
@RequestMapping("role")
public class RoleController {
     @Autowired
    private RoleService roleService;

     @RequestMapping("/findAll")
    public TableLayUi list(int page, int limit){
          return roleService.findRoleByPage(page,limit);
     }
}
